

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.ArrayList,
                 java.util.Iterator,
                 java.util.HashMap,
                 com.scalar.chiptrack.users.Functionality,
                 com.scalar.chiptrack.users.FunctionAccess,
                 com.scalar.ScalarException,
                 com.scalar.chiptrack.utils.ConfigManager,
				 com.scalar.chiptrack.utils.StringUtils,
				 com.scalar.chiptrack.operations.proformainvoice.BankInfo,
                 com.scalar.chiptrack.commons.Constants"%>
<%@ page import="com.scalar.chiptrack.users.User" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/jsp/admin/admin.jsp"/>

<html:html locale="true">

<HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext(); %>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>

<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0" onload="check();">


<script src="<%=chipTracContext%>/jsp/includes/scripts/functions.js">
</script>
<SCRIPT language="JavaScript" src="<%=chipTracContext%>/jsp/includes/scripts/validations.js">
</script>
<script language='javascript'>


<% HashMap bankInfoMap = (HashMap)request.getAttribute("BankInfo");

	if(bankInfoMap != null)
	{
		int  bankNamesSize = bankInfoMap.size();
		Iterator bankInfoIterator  = bankInfoMap.keySet().iterator();
		
		%>  
			//alert(<%=bankNamesSize%>);
			var bankID    = new Array(<%=bankNamesSize%>);
			var bankName  = new Array(<%=bankNamesSize%>);
			var address   = new Array(<%=bankNamesSize%>);
			var city      = new Array(<%=bankNamesSize%>);
			var state     = new Array(<%=bankNamesSize%>);
			var zipcode   = new Array(<%=bankNamesSize%>);
			var country   = new Array(<%=bankNamesSize%>);
			var aba       = new Array(<%=bankNamesSize%>);
			var acct      = new Array(<%=bankNamesSize%>);
			var swiftcode = new Array(<%=bankNamesSize%>);
			
		<%
		BankInfo bankInfo[] = new BankInfo[bankNamesSize];
		for( int jj = 0; jj < bankNamesSize; jj++)
        {
			String key = (String)bankInfoIterator.next();
			if(bankInfoMap.get(key) != null)
			{
				if(bankInfoMap.containsKey(key))
				{
					bankInfo[jj] = (BankInfo)bankInfoMap.get(key);
					%>   
						 bankID[<%=jj%>]    = '<%=bankInfo[jj].getBankId()%>';
						 bankName[<%=jj%>]  = '<%=bankInfo[jj].getBankName()%>';
						 address[<%=jj%>]   = '<%=bankInfo[jj].getAddress()%>';
						 city[<%=jj%>]      = '<%=bankInfo[jj].getCity()%>';
						 state[<%=jj%>]     = '<%=bankInfo[jj].getState()%>';
						 zipcode[<%=jj%>]   = '<%=bankInfo[jj].getZipCode()%>';
						 country[<%=jj%>]   = '<%=bankInfo[jj].getCountry()%>';
						 aba[<%=jj%>]       = '<%=bankInfo[jj].getAba()%>';
						 acct[<%=jj%>]      = '<%=bankInfo[jj].getAcct()%>';
						 swiftcode[<%=jj%>] = '<%=bankInfo[jj].getSwiftCode()%>';
					<%
				}

			}
		}//for
	}
%>


function check()
{
	var bankidd = document.clientInfoForm.bankId.value;
	var totalbanks = document.clientInfoForm.bankNames.length;
	//alert(document.clientInfoForm.bankId.value);

	if( bankidd != 0 )
		{
				//flag = true;
				for(aa=0; aa<totalbanks; aa++)
				{
					banktext = '';
					if( bankidd == bankID[aa] )
					{
						banktext = '<table border="0" width="100%" bordercolor="black" align=center>';
						banktext = banktext +'<tr><td width="23%" class="NArialL" align="left" >Bank Name &nbsp;<font color="red"> * </font></td>';
						banktext = banktext +'<td width="30%" align="left" ><input type="text" name="bankName" value="'+bankName[aa]+'" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td width="23%" class="NArialL" align="left">Address</td>';
						banktext = banktext +'<td width="25%" align="right" ><input type="text" name="bankAddress" value="'+address[aa]+'" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >City </td>';
						banktext = banktext +'<td align="left" ><input type="text" name="bankCity" value="'+city[aa]+'" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td class="NArialL" align="left">State</td>';
						banktext = banktext +'<td align="right" ><input type="text" name="bankState" value="'+state[aa]+'" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >ZipCode </td>';
						banktext = banktext +'<td align="left" ><input type="text" name="bankZipCode" value="'+zipcode[aa]+'" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td class="NArialL" align="left">Country</td>';
						banktext = banktext +'<td align="right" ><input type="text" name="bankCountry" value="'+country[aa]+'" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >Aba </td>';
						banktext = banktext +'<td align="left" ><input type="text" name="aba" value="'+aba[aa]+'" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td class="NArialL" align="left">Acct</td>';
						banktext = banktext +'<td align="right" ><input type="text" name="acct" value="'+acct[aa]+'" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >SwiftCode </td>';
						banktext = banktext +'<td align="left" ><input type="text" name="swiftCode" value="'+swiftcode[aa]+'" class="txfield" maxlength="50" /></td></tr>';

						var pa=document.getElementById("font1");
						pa.innerHTML = banktext;
                    }
					else if( bankidd == -1 || bankidd == '')
					{
						banktext = '<table border="0" width="100%" bordercolor="black" align=center>';
						banktext = banktext +'<tr><td width="23%" class="NArialL" align="left" >Bank Name &nbsp;<font color="red"> * </font></td>';
						banktext = banktext +'<td width="30%" align="center" ><input type="text" name="bankName" value="" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td width="23%" class="NArialL" align="right">Address</td>';
						banktext = banktext +'<td width="25%" align="center" ><input type="text" name="bankAddress" value="" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >City </td>';
						banktext = banktext +'<td align="center" ><input type="text" name="bankCity" value="" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td class="NArialL" align="right">State</td>';
						banktext = banktext +'<td align="center" ><input type="text" name="bankState" value="" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >ZipCode </td>';
						banktext = banktext +'<td align="center" ><input type="text" name="bankZipCode" value="" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td class="NArialL" align="right">Country</td>';
						banktext = banktext +'<td align="center" ><input type="text" name="bankCountry" value="" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >Aba </td>';
						banktext = banktext +'<td align="center" ><input type="text" name="aba" value="" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td class="NArialL" align="right">Acct</td>';
						banktext = banktext +'<td align="center" ><input type="text" name="acct" value="" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >SwiftCode </td>';
						banktext = banktext +'<td align="center" ><input type="text" name="swiftCode" value="" class="txfield" maxlength="50" /></td></tr>';

						var pa=document.getElementById("font1");
						pa.innerHTML = banktext;
					}
				}
		}
		else if( bankidd == 0 )
	   {
		    banktext = '';
			var pa = document.getElementById("font1");
			pa.innerHTML = banktext;
	   }
}

function savePage()
{
	var errors = '';

	var clientName = document.clientInfoForm.clientName.value;
	var bankId = document.clientInfoForm.bankNames.value;
    var salesOrderLength = document.clientInfoForm.salesOrderLength.value;

    var email = document.clientInfoForm.email;
	var jitWindow = document.clientInfoForm.jitWindow;
    var lotTransitJitWindow = document.clientInfoForm.shipJitWindow;
    var shippinglocationId= document.clientInfoForm.shippingLocationId;

    if( clientName.trim() == '' || clientName.trim().length == 0 )
    {
		 errors = errors+ '<li> Client Name should not be empty ' ;
	}
	if( email.value != '' )
	{
		if( !IsValidEmail (email) )
		{
			errors = errors + '<br>'+' <li> Please enter a valid email address';
			email.select();
			email.focus();
		}
	}
    if( jitWindow.value != '' )
    {
        if( !isInteger (jitWindow.value) )
        {
            errors = errors + '<br>'+' <li> Please enter a valid integer';
            jitWindow.select();
            jitWindow.focus();
        }
    }
    if( lotTransitJitWindow.value != '' )
    {
        if( !isInteger (lotTransitJitWindow.value) )
        {
            errors = errors + '<br>'+' <li> Please enter a valid integer';
            lotTransitJitWindow.select();
            lotTransitJitWindow.focus();
        }
    }

    if( document.clientInfoForm.sortProcessTime.value != '' )
    {
        if( !isInteger ( document.clientInfoForm.sortProcessTime.value ) )
        {
            errors = errors + '<br>'+' <li> Please enter a valid integer';
            document.clientInfoForm.sortProcessTime.select();
            document.clientInfoForm.sortProcessTime.focus();
        }
    }

    if( document.clientInfoForm.assemblyProcessTime.value != '' )
    {
        if( !isInteger (document.clientInfoForm.assemblyProcessTime.value) )
        {
            errors = errors + '<br>'+' <li> Please enter a valid integer';
            document.clientInfoForm.assemblyProcessTime.select();
            document.clientInfoForm.assemblyProcessTime.focus();
        }
    }
    if( shippinglocationId.value == 0  )
    {
            errors = errors + '<br>'+' <li> Please select the Shipping Location';
            shippinglocationId.focus();
    }

    if( bankId != 0)
	{
		var bankName = document.clientInfoForm.bankName.value;
		if( bankName.trim() == '' || bankName.trim().length == 0 )
		{
			errors = errors +'<li> Bank Name should not be empty ' ;
		}
	}
    if(!isInteger(salesOrderLength))
    {
        errors = errors +'<li> SalesOrderNo Length Should be Integer' ;
    }
	if( errors != '')
    {
        var pa1 = document.getElementById("info");
        pa1.innerHTML = "";
        var pa=document.getElementById("errors");
        pa.innerHTML = errors;
        return;
	}
		//loadBankInfo();
    document.clientInfoForm.action = '<%=chipTracContext%>/clientInfo.do?action=saveClientInfo&bankId='+bankId;
    document.clientInfoForm.submit();
}

 // var flag = false;
function loadBankInfo()
{
	var banktext = '';
	var bankid     = document.clientInfoForm.bankNames.value;
	var totalbanks = document.clientInfoForm.bankNames.length;
	var indexValue =  document.clientInfoForm.bankNames.selectedIndex;

		if( bankid != 0 )
		{
				//flag = true;
				for(aa=0; aa<totalbanks; aa++)
				{ 
					 banktext = '';
					if( bankid == bankID[aa] )
					{
						banktext = '<table border="0" width="100%" bordercolor="black" align=center>';
						banktext = banktext +'<tr><td width="23%" class="NArialL" align="left" >Bank Name &nbsp;<font color="red"> * </font></td>';
						banktext = banktext +'<td width="30%" align="left" ><input type="text" name="bankName" value="'+bankName[aa]+'" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td width="23%" class="NArialL" align="left">Address   </td>';
						banktext = banktext +'<td width="25%" align="right" ><input type="text" name="bankAddress" value="'+address[aa]+'" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >City </td>';
						banktext = banktext +'<td align="left" ><input type="text" name="bankCity" value="'+city[aa]+'" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td class="NArialL" align="left">State</td>';
						banktext = banktext +'<td align="right" ><input type="text" name="bankState" value="'+state[aa]+'" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >ZipCode </td>';
						banktext = banktext +'<td align="left" ><input type="text" name="bankZipCode" value="'+zipcode[aa]+'" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td class="NArialL" align="left">Country</td>';
						banktext = banktext +'<td align="right" ><input type="text" name="bankCountry" value="'+country[aa]+'" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >Aba </td>';
						banktext = banktext +'<td align="left" ><input type="text" name="aba" value="'+aba[aa]+'" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td class="NArialL" align="left">Acct</td>';
						banktext = banktext +'<td align="right" ><input type="text" name="acct" value="'+acct[aa]+'" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >SwiftCode </td>';
						banktext = banktext +'<td align="left" ><input type="text" name="swiftCode" value="'+swiftcode[aa]+'" class="txfield" maxlength="50" /></td></tr>';
						
						var pa=document.getElementById("font1");
						pa.innerHTML = banktext;
                    }
					else if( bankid == -1 || bankid == '')
					{
						banktext = '<table border="0" width="100%" bordercolor="black" align=center>';
						banktext = banktext +'<tr><td width="23%" class="NArialL" align="left" >Bank Name &nbsp;<font color="red"> * </font></td>';
						banktext = banktext +'<td width="30%" align="left" ><input type="text" name="bankName" value="" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td width="23%" class="NArialL" align="left">Address</td>';
						banktext = banktext +'<td width="25%" align="center" ><input type="text" name="bankAddress" value="" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >City </td>';
						banktext = banktext +'<td align="left" ><input type="text" name="bankCity" value="" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td class="NArialL" align="left">State</td>';
						banktext = banktext +'<td align="center" ><input type="text" name="bankState" value="" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >ZipCode </td>';
						banktext = banktext +'<td align="left" ><input type="text" name="bankZipCode" value="" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td class="NArialL" align="left">Country</td>';
						banktext = banktext +'<td align="center" ><input type="text" name="bankCountry" value="" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >Aba </td>';
						banktext = banktext +'<td align="left" ><input type="text" name="aba" value="" class="txfield" maxlength="50" /></td>';
						banktext = banktext +'<td class="NArialL" align="left">Acct</td>';
						banktext = banktext +'<td align="center" ><input type="text" name="acct" value="" class="txfield" maxlength="50"/></td></tr>';

						banktext = banktext +'<tr><td class="NArialL" align="left" >SwiftCode </td>';
						banktext = banktext +'<td align="left" ><input type="text" name="swiftCode" value="" class="txfield" maxlength="50" /></td></tr>';
						var pa=document.getElementById("font1");
						pa.innerHTML = banktext;
					}
				}
       }
	   else if( bankid == 0 )
	   {
		    banktext = '';
			var pa = document.getElementById("font1");
			pa.innerHTML = banktext;
	   }

}
</script>




<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TR>
  <td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->
<%@ include file="/jsp/admin/admin_menu.jsp" %>
<!-- end of the side navigations -->
 </td>
<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></IMG></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0></IMG>
<BR>


<!-- BODY STARTS HERE -->

<center><span class="NArialW">Client Information</span></center>

<html:form name="clientInfoForm" type="com.scalar.chiptrack.users.forms.ClientInfoForm" action="/clientInfo">
  <table border="0" width="70%" bordercolor="black" align=center>
    <tr><td colspan='4'><FONT id="info"><chiptrack:info styleClass="NArialL" /></FONT></td></tr>
    <tr><td colspan='4'><chiptrack:errors styleClass="NArialL" /></td></tr>
    <logic:equal name="showMessage" value="TRUE">
        <tr><td colspan=4 align='left'>
        <font class='NArialS'>
        <font color='blue'><b><%=Constants.NO_MODIFY_RIGHTS %></b>
        </font></font></td></tr>
    </logic:equal>
	<tr><td  colspan="4" class='NArialL'><FONT id="errors" styleClass="NArialL" color='FF0000'></FONT></TD></TR>
	<!--tr><td colspan='4' class='NArialL'><font styleClass="NArialL" id='errors' color="FF0000" /></td></tr>
	<tr><td colspan ='4' align="left" class='NArialL'><font styleClass="NArialL" id="ErrorMessage" color="red" />&nbsp;</font></td></tr-->

    <td width="20%" bgcolor="#DEE1E2" colspan='5' ><font class="NArialL" >Client Address</font></td>
    <tr>
    <td class="NArialL" align="left">Client Name &nbsp; <font color="red"> * </font></td>
    <td><html:text name='clientInfoForm' property='clientName' styleClass='txfield' maxlength="50"/></td>
    </tr>
	
    <tr>
    <td  class="NArialL" align="left">Address1</td>
    <td><html:text name='clientInfoForm' property='address1' styleClass='txfield' maxlength="50"/></td>
    <td class="NArialL" align="left">Address2</td>
    <td><html:text name='clientInfoForm' property='address2' styleClass='txfield' maxlength="50"/></td>
    </tr>
	<tr>
    <td  class="NArialL" align="left">Address3</td>
    <td><html:text name='clientInfoForm' property='address3' styleClass='txfield' maxlength="50"/></td>
    <td class="NArialL" align="left">Address4</td>
    <td><html:text name='clientInfoForm' property='address4' styleClass='txfield' maxlength="50"/></td>
    </tr>
    <tr>
    <td class="NArialL" align="left">City</td>
    <td ><html:text name='clientInfoForm' property='city' styleClass='txfield' maxlength="50"/></td>
    <td class="NArialL" align="left">State</td>
    <td><html:text name='clientInfoForm' property='state' styleClass='txfield' maxlength="50"/></td>
    </tr>
    <tr>
    <td class="NArialL" align="left">Zip Code</td>
    <td><html:text name='clientInfoForm' property='zipCode' styleClass='txfield' maxlength="50"/></td>
    <td class="NArialL" align="left">Country</td>
    <td><html:text name='clientInfoForm' property='country' styleClass='txfield' maxlength="50"/></td>
    </tr>
    <tr>
    <td class="NArialL" align="left">Phone Number</td>
    <td><html:text name='clientInfoForm' property='phoneNumber' styleClass='txfield' maxlength="50" onkeypress='validatePhoneNumber(this)'/></td>
    <td class="NArialL" align="left">Fax Number</td>
    <td><html:text name='clientInfoForm' property='faxNumber' styleClass='txfield' maxlength="50" onkeypress='validatePhoneNumber(this)'/></td>
    </tr>
    <tr>
    <td class="NArialL" align="left">Email</td>
    <td><html:text name='clientInfoForm' property='email' styleClass='txfield' maxlength="50"/></td>
    </tr>
	<tr>
	<!-- Added CCATS Number by Saritha on 11/15/2004 -->
    <td class="NArialL" align="left">CCATS Number</td>
    <td><html:text name='clientInfoForm' property='ccatsNumber' styleClass='txfield' maxlength="100"/></td>
    <td class="NArialL" align="left">JIT Window</td>
    <td><html:text name='clientInfoForm' property='jitWindow' styleClass='txfield' maxlength="4"/></td>
    </tr>

    <tr>
	<td class="NArialL" align="left">SORT Process Time</td>
    <td><html:text name='clientInfoForm' property='sortProcessTime' styleClass='txfield' maxlength="3"/></td>
    <td class="NArialL" align="left">ASSEMBLY Process Time</td>
    <td><html:text name='clientInfoForm' property='assemblyProcessTime' styleClass='txfield' maxlength="3"/></td>
    </tr>
    <!-- Added Ship JIT Window on 01/03/2005-->
     <tr>
    <td class="NArialL" align="left">Lot Transit JIT Window</td>
    <td><html:text name='clientInfoForm' property='shipJitWindow' styleClass='txfield' maxlength="4"/></td>

    <td class="NArialL" align="left">Default Shipping Location &nbsp; <font color="red"> * </font></td>
    <td>
         <html:select name="clientInfoForm" property="shippingLocationId" styleClass="txfield" >
             <html:option value="0" >Select Location</html:option>
             <html:options collection="locations" property="value" labelProperty="label"/>

         </html:select>
    </td>
    </tr>

    <td width="20%" bgcolor="#DEE1E2" colspan='5' ><font class="NArialL" >Bank Information</font></td>
    <tr>
	<tr>
    <td class="NArialL" align="left">Select Bank Name </td>
     <td>
     <html:select name="clientInfoForm" property="bankNames" styleClass="txfield" onchange="javascript:loadBankInfo();">
     <html:options collection="AllBankNames" property="value" labelProperty="label"/>
	 <html:option value="" ></html:option>
	 <html:option value="-1" > --- Add New Bank --- </html:option>
     </html:select>
	 </td>
	 </tr>
    <tr><td  colspan='5' align="left"><FONT id="font1"></FONT></TD></TR>
	<%-- <tr>
	<td class="NArialL" align="left">Bank Name &nbsp; <font color="red"> * </font></td>
    <td><html:text name='clientInfoForm' property='bankName' styleClass='txfield' maxlength="50"/></td> 
    <td class="NArialL" align="left">Address</td>
    <td><html:text name='clientInfoForm' property='bankAddress' styleClass='txfield' maxlength="50"/></td>
    </tr>
    <tr>
    <td class="NArialL" align="left">City</td>
    <td><html:text name='clientInfoForm' property='bankCity' styleClass='txfield' maxlength="50"/></td>
    <td class="NArialL" align="left">State</td>
    <td><html:text name='clientInfoForm' property='bankState' styleClass='txfield' maxlength="50"/></td>
    </tr>
    <tr>
    <td class="NArialL" align="left">Zip Code</td>
    <td><html:text name='clientInfoForm' property='bankZipCode' styleClass='txfield' maxlength="50"/></td>
    <td class="NArialL" align="left">Country</td>
    <td><html:text name='clientInfoForm' property='bankCountry' styleClass='txfield' maxlength="50"/></td>
    </tr>
    <tr>
    <td class="NArialL" align="left">ABA</td>
    <td><html:text name='clientInfoForm' property='aba' styleClass='txfield' maxlength="50"/></td>
    <td class="NArialL" align="left">Acct</td>
    <td><html:text name='clientInfoForm' property='acct' styleClass='txfield' maxlength="50"/></td>
    </tr>
    <tr>
    <td class="NArialL" align="left">Swift Code</td>
    <td><html:text name='clientInfoForm' property='swiftCode' styleClass='txfield' maxlength="50"/></td>
    </tr>
    --%>
    <tr> 
	<td width="20%" bgcolor="#DEE1E2" colspan='5' ><font class="NArialL" >Sales Order Info</font></td>
	</tr>
	<tr>
    <td  class="NArialL" align="left">SalesOrder No. Prefix</td>
    <td><html:text name='clientInfoForm' property='salesOrderPrefix' styleClass='txfield' maxlength="5"/></td>
    <td class="NArialL" align="left">SalesOrder No. Length</td>
    <td><html:text name='clientInfoForm' property='salesOrderLength' styleClass='txfield' maxlength="5"/></td>
    </tr>
	<tr>
    <td  class="NArialL" align="left">Quote No. Prefix</td>
    <td><html:text name='clientInfoForm' property='quotationPrefix' styleClass='txfield' maxlength="5"/></td>
    <td class="NArialL" align="left">Quote No. Length</td>
    <td><html:text name='clientInfoForm' property='quotationLength' styleClass='txfield' maxlength="5"/></td>
    </tr>
    <!-- Added by Rohan on July 22nd 2004-->
    <tr>
    <td  class="NArialL" align="left">PackingSlip No. Prefix</td>
    <td><html:text name='clientInfoForm' property='psPrefix' styleClass='txfield' maxlength="5"/></td>
    <td class="NArialL" align="left">PackingSlip No. Length</td>
    <td><html:text name='clientInfoForm' property='psLength' styleClass='txfield' maxlength="5"/></td>
    </tr>

    <tr>
    <td  class="NArialL" align="left">RMA No. Prefix</td>
    <td><html:text name='clientInfoForm' property='rmaPrefix' styleClass='txfield' maxlength="5"/></td>
    <td class="NArialL" align="left">RMA No. Length</td>
    <td><html:text name='clientInfoForm' property='rmaLength' styleClass='txfield' maxlength="5"/></td>
    </tr>
    <!-- released comment line for purchase order block  on 15-10-07 -->
    <tr>
        <td  class="NArialL" align="left">Purchase Order No. Prefix</td>
        <td><html:text name='clientInfoForm' property='purchaseOrderNoPrefix' styleClass='txfield' maxlength="5"/></td>
        <td class="NArialL" align="left">Purchase Order No. Length</td>
        <td><html:text name='clientInfoForm' property='purchaseOrderNoLength' styleClass='txfield' maxlength="5"/></td>
    </tr>
    <%--<tr>
        <td  class="NArialL" align="left">Auto Receipt No. Prefix</td>
        <td><html:text name='clientInfoForm' property='autoReceiptNoPrefix' styleClass='txfield' maxlength="5"/></td>
        <td class="NArialL" align="left">Auto Receipt No. Length</td>
        <td><html:text name='clientInfoForm' property='autoReceiptNoLength' styleClass='txfield' maxlength="5"/></td>
    </tr>--%>
    <tr>
        <td  class="NArialL" align="left">Assembly Release No. Prefix</td>
        <td><html:text name='clientInfoForm' property='assmReleasePrefix' styleClass='txfield' maxlength="5"/></td>
        <td class="NArialL" align="left">Assembly Release No. Length</td>
        <td><html:text name='clientInfoForm' property='assmReleaseLength' styleClass='txfield' maxlength="5"/></td>
    </tr>
    <tr>
        <td  class="NArialL" align="left">Sort Release No. Prefix</td>
        <td><html:text name='clientInfoForm' property='sortReleasePrefix' styleClass='txfield' maxlength="5"/></td>
        <td class="NArialL" align="left">Sort Release No. Length</td>
        <td><html:text name='clientInfoForm' property='sortReleaseLength' styleClass='txfield' maxlength="5"/></td>
    </tr>
    <tr>
        <td  class="NArialL" align="left">Test Release No. Prefix</td>
        <td><html:text name='clientInfoForm' property='testReleasePrefix' styleClass='txfield' maxlength="5"/></td>
        <td class="NArialL" align="left">Test Release No. Length</td>
        <td><html:text name='clientInfoForm' property='testReleaseLength' styleClass='txfield' maxlength="5"/></td>
    </tr>
    <%--<tr>
        <td  class="NArialL" align="left">Program Release No. Prefix</td>
        <td><html:text name='clientInfoForm' property='programReleasePrefix' styleClass='txfield' maxlength="5"/></td>
        <td class="NArialL" align="left">Program Release No. Length</td>
        <td><html:text name='clientInfoForm' property='programReleaseLength' styleClass='txfield' maxlength="5"/></td>
    </tr>
    <tr>
        <td  class="NArialL" align="left">Ship Request No. Prefix</td>
        <td><html:text name='clientInfoForm' property='shiprequestPrefix' styleClass='txfield' maxlength="5"/></td>
        <td class="NArialL" align="left">Ship Request No. Length</td>
        <td><html:text name='clientInfoForm' property='shiprequestLength' styleClass='txfield' maxlength="5"/></td>
    </tr>--%>
    <tr>
        <td colspan="4">&nbsp;</td>
    </tr>
    <!-- End of additions by Rohan on July 22nd 2004-->

    <tr>
    <td colspan='2' align="right">
    <chiptrack:restrictedLink functionality='<%=Functionality.COMPANY_SETUP%>' action='<%=User.USER_ACTION_MODIFY%>' href='javascript:savePage();' onmouseover="window.status='Click to save Client Information';return true" onmouseout="window.status='';return true">
    <img border="0" src="<%=chipTracContext%>/jsp/includes/images/save.gif" title='Click to save Client Information'/>
    </chiptrack:restrictedLink>
    <%--<a href="javascript:savePage();" onMouseOver="window.status='Click to save Client Information ';return true" onMouseOut="window.status='';return true" title='Click to save Client Information'/>
	<img border="0" src="<%=chipTracContext%>/jsp/includes/images/save.gif"/>--%>
    <td>
    <td colspan='2' align="left"><a href="javascript:document.clientInfoForm.reset();" onMouseOver="window.status='Click to reset ';return true" onMouseOut="window.status='';return true" title="Click here to Reset"/>
    <img border="0" src="<%=chipTracContext%>/jsp/includes/images/reset.gif"/></td>
    </tr>

  </table>

<!-- BODY ENDS HERE -->


<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>

<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
<html:hidden name="clientInfoForm" property="bankId" />
</html:form>
</body>
</html:html>

